<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="../js/jq.js" > </script>
        <style>
            #text {
               color: red;
               display: none;
                
            }
        </style>
        
        <script type="text/javascript" language="javascript">
            
            function myTrans(str) {
                //alert(str);
                $("#text").slideUp("fast");
                $.ajax({  
                url: "transilit.php",
                data: "str="+str,
                cache: false,  
                error: function(html){  
                $("#text").html("Error");  
                    },
                success: (function(html){  
                $("#text").html(html);  
                $("#text").slideDown("slow");
                    })
                });
            }
        </script>
    </head>
    <body>
        <form name="trans">
            <input onkeyup="myTrans(this.value);" name="inp" />
        </form>
        <div id="text" > </div>
    </body>
</html>
